package com.key.w8.http1.connection;

import com.key.w8.http1.connection.connectionImpl.DefaultHttp1Connection;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.EventLoopGroup;

import java.io.IOException;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * @Author: k8
 * @CreateTime: 2025-03-22
 * @Version: 1.0
 */
public interface ChannelBuilder {
    Bootstrap doBuildStrap(EventLoopGroup group, DefaultHttp1Connection connection);
    void doConnect(Bootstrap bootstrap, DefaultHttp1Connection connection, AtomicInteger reConnectTimes);
    void doConnectSync(Bootstrap bootstrap, DefaultHttp1Connection connection, AtomicInteger reConnectTimes) throws IOException;
}
